<div class="panel panel-default" style="border-top: none">
  <br><br>
  <div class="row">
    <div class="col-lg-12">
      <ul class="nav nav-tabs nav-stacked col-md-3 col-lg-3 col-sm-4" ng-repeat="klass in klasses">
        <li>
          <a href="#" data-toggle="tooltip" title="班级代码：{{klass.code}}" ng-click="edit(klass)">{{klass.name}}
            <button type="button" class="close" ng-click="deleteKlass(klass)">&times;</button>
          </a>
        </li>
      </ul>
    </div>
  </div>
  <div class="row">
    <div class="col-lg-12 text-center">
      <br>
      <br>
      <form class="form-inline" name="form" ng-submit="save(form)" novalidate>
        <div class="form-group">
          <label for="inputCode">班级代码:</label>
          <input type="text" class="form-control" id="inputCode" name="code" placeholder="代码" ng-model="code" required>
        </div>
        <div class="form-group">
          <label for="inputName">班级名称:</label>
          <input type="text" class="form-control" id="inputName" name="name" placeholder="名称" ng-model="name" required>
        </div>
        <button type="submit" class="btn btn-primary">提交保存</button>
        <div class="form-group has-error">
          <p class="help-block" ng-show="(form.code.$error.required || form.name.$error.required) && submitted">
            班级代码和名称不能为空.
          </p>
        </div>
      </form>
      <br>
    </div>
    </div>
  </div>
